//
//  QLMHomepageCViewCell.m
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/10/7.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "QLMHomepageCViewCell.h"

@interface QLMHomepageCViewCell ()
//@property (nonatomic, weak) UILabel *label;
@property (nonatomic, weak) UIImageView *pageImageview;
@end

@implementation QLMHomepageCViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        [self addLabel];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        self.backgroundColor = [UIColor clearColor];
        [self addLabel];
    }
    return self;
}


- (void)addLabel {
    
    UIImageView *pageImageview=[[UIImageView alloc] init];
    [self addSubview:pageImageview];
    _pageImageview=pageImageview;
    
//    UILabel *label = [[UILabel alloc]init];
//    label.textAlignment = NSTextAlignmentCenter;
//    label.textColor = [UIColor whiteColor];
//    label.font = [UIFont systemFontOfSize:18];
//    [self addSubview:label];
//    _label = label;
}

- (void)layoutSubviews {
    [super layoutSubviews];
//    _label.frame = self.bounds;
    _pageImageview.frame = self.bounds;
}

@end
